<template>
  <!-- 表单的详情 -->
  <div>
    <!-- <el-form ref="form" label-width="120px" disabled> -->
    <el-form label-width="150px" disabled>
      <el-form-item label="编号：">
        <span>{{ rowlist.id }}</span>
      </el-form-item>
      <el-form-item label="名称：">
        <span>{{ rowlist.author }}</span>
      </el-form-item>
      <el-form-item label="品质：">
        <span>{{ rowlist.status }}</span>
      </el-form-item>
      <el-form-item v-if="!listnumber" label="攻击力：">
        <span>{{ rowlist.damage }}</span>
      </el-form-item>
      <el-form-item label="介绍：">
        <span>{{ rowlist.title }}</span>
      </el-form-item>
      <el-form-item label="最后修改时间：">
        <span>{{ rowlist.display_time }}</span>
      </el-form-item>
      <el-form-item label="是否隐藏该物品：">
        <el-switch
          :value="rowlist.status1"
          active-text="隐藏"
          inactive-text="不隐藏"
        />
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
import { mapState } from 'vuex'

export default {
  name: 'FromDetail',
  computed: mapState({
    rowlist: state => state.equipment.rowlist,
    listnumber: state => state.equipment.listnumber
  })
}
</script>

<style lang="scss" scoped>
  span{
    color: red;
  }
</style>
